package messages.udp;

import messages.BaseMessage;
import messages.MessageType;

public class PersonInElevatorMessage extends BaseMessage {

    public PersonInElevatorMessage(byte[] data)
    {
        super(data);
    }

    public PersonInElevatorMessage(){
    	super(null);
    }
    
    @Override
    public byte[] toByteArray()
    {
    	byte[] retVal = new byte[getMessageSize()];
        retVal[0] = getMessageType().getIdentifier();
        
        return retVal;
    }

    @Override
    public MessageType getMessageType()
    {
        return MessageType.PersonInElevatorMessage;
    }

    @Override
    public int getMessageSize()
    {
        return 1;
    }

}
